<?php
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/config.inc.php');
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/top.inc.php');

$season = mysql_real_escape_string(strip_tags($_POST['new_season']));

echo "<h1>Add Season</h1>";

$query2 = "INSERT INTO seasons (id, season)
	VALUES ('','$season')";

$result2 = mysql_query($query2);

if ($result2)
{
	echo "<b>$season</b> has been successfully added to seasons!";
	echo "<br />";
}
else
{
	echo "<b>$season</b> was NOT able to be added to seasons at this time!";
	echo "<br />";
}

//close
mysql_close();

echo "<p>";
	echo "<a href='index.php'>&lt;&lt; Back to Semesters Portal</a><br />";
echo "</p>";
?>

<?php
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/bottom.inc.php');
?>